package it.unibo.refolding.pico;

import it.unibo.refolding.common.LoggingInvocationHandler;

import java.lang.reflect.Proxy;
import java.util.logging.Level;


/**
 * jremoting has problems directly exposing a proxy.
 */
public class FakeLoggingInfoNanoDriver extends NanoDriverDecorator {

	public FakeLoggingInfoNanoDriver(NanoDriverConfig config) {
		super((NanoDriver) Proxy.newProxyInstance(
			FakeLoggingInfoNanoDriver.class.getClassLoader(), new Class<?>[] {NanoDriver.class},
			new LoggingInvocationHandler(
				Level.INFO, new FakeNanoDriver(config))));
	}
}
